package constructor.demo1.demo1;

public class Person {
    private String name;
    private int age;
    public Person(String name , int age){
        this.name = name;
        this.age = age;
        System.out.println("这是一个有参数的类");
    }


    public void setName(String name){
        this.name = name;
    }

    public void setAge(int age){
        this.age = age;
    }
    public String getName(){
        return name;
    }

    public int getAge(){
        return age;
    }
}
